package com.htzos.admin.ac.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.htzos.admin.ac.bean.AcNoticeBase;
import com.htzos.admin.ac.dao.AcNoticeBaseMapper;
import com.htzos.common.tool.ExtQueryBean;
@Service
@Transactional(rollbackFor = Exception.class)
public class AcNoticeBaseService {
    @Autowired
    AcNoticeBaseMapper acNoticeBaseMapper;
    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public List<AcNoticeBase> acNoticeBaseList(AcNoticeBase acNoticeBase, ExtQueryBean extQuery){
       return acNoticeBaseMapper.acNoticeBaseList(acNoticeBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public Integer acNoticeBaseTotal(AcNoticeBase acNoticeBase, ExtQueryBean extQuery){
       return acNoticeBaseMapper.acNoticeBaseTotal(acNoticeBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int acNoticeBaseUpdate(AcNoticeBase acNoticeBase){
       return acNoticeBaseMapper.acNoticeBaseUpdate(acNoticeBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int acNoticeBaseInsert(AcNoticeBase acNoticeBase){
       return acNoticeBaseMapper.acNoticeBaseInsert(acNoticeBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int acNoticeBaseDelete(AcNoticeBase acNoticeBase){
       return acNoticeBaseMapper.acNoticeBaseDelete(acNoticeBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public AcNoticeBase acNoticeBaseGet(String id){
       return acNoticeBaseMapper.acNoticeBaseGet(id);
    }
}